<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>订单详情</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<style>
			table{
				border: 1px solid #eeeeee;
				line-height: 28px;
			}
			table th,table td{
				padding:0px 10px;
				border-bottom: 1px solid #eeeeee;
				border-right: 1px solid #eeeeee;
			}
			table thead{
				background: #FAFAFA;
			}
			.price{
				color: #ff0000;
				font-size: 18px;
			}
		</style>
	</head>

	<body class="default">
		<div style="margin: 30px 20px;">
			<div class="layui-form-item">
				<label class="layui-form-label">供应商</label>
				<div class="layui-input-block" style="line-height: 38px;">{$data.supplier_name}</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">报备单号</label>
				<div class="layui-input-block" style="line-height: 38px;">{$data.baobei_order_no}</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">报价时间</label>
				<div class="layui-input-block" style="line-height: 38px;">{$data.create_time}</div>
			</div>
			<div class="layui-form-item">
				<table width="100%">
					<thead>
						<tr>
							<th width="25%" align="left">商品编号</th>
							<th width="35%" align="left">商品名称</th>
							<th width="10%" align="left">限价</th>
							<th width="10%" align="left">报价</th>
							<th width="10%" align="left">库存</th>
						</tr>
					</thead>
					<tbody>
						{volist name="data.param_arr" id="list"}
						<tr>
							<td>{$list.goods_sku}</td>
							<td>{$list.goods_name}</td>
							<td>{$list.sale_price}</td>
							<td class="price">{:number_format($list.api_price,2,'.','')}</td>
							<td>{$list.view_stock}</td>
						</tr>
						{/volist}
					</tbody>
				</table>
			</div>
			<div class="layui-form-item" style="margin-top: 40px;">
				<div>
					<button {if condition="$data.audit_state NEQ 2"}style="display:none"{/if} type="button" class="layui-btn layui-btn-normal" id="confirm_order">审核报价单</button>
					<button {if condition="$data.audit_state NEQ 2"}style="display:none"{/if} type="button" class="layui-btn layui-btn layui-btn-danger" id="refuse_order">拒绝报价单</button>
					<button type="button" id="close_page" class="layui-btn layui-btn-primary">关闭窗口</button>
				</div>
			</div>
		</div>
		<script>
		var save_url = "{:url('offer/saveData')}",
			offer_id = "{$offer_id}";
		</script>
		<script src="/static/js/offer/views.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>